package com.hzlx.types.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 缺陷类型标准库（用于质量检验中的缺陷分类）对象 mes_defect_types
 * 
 * @author ruoyi
 * @date 2025-07-01
 */
public class DefectTypes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 缺陷类型ID */
    private String defectTypeId;

    /** 缺陷类型名称 */
    @Excel(name = "缺陷类型名称")
    private String defectName;

    /** 缺陷类型详细描述 */
    @Excel(name = "缺陷类型详细描述")
    private String description;

    /** 缺陷分类（如：外观/功能/尺寸等） */
    @Excel(name = "缺陷分类", readConverterExp = "如=：外观/功能/尺寸等")
    private String category;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setDefectTypeId(String defectTypeId) 
    {
        this.defectTypeId = defectTypeId;
    }

    public String getDefectTypeId() 
    {
        return defectTypeId;
    }

    public void setDefectName(String defectName) 
    {
        this.defectName = defectName;
    }

    public String getDefectName() 
    {
        return defectName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("defectTypeId", getDefectTypeId())
            .append("defectName", getDefectName())
            .append("description", getDescription())
            .append("category", getCategory())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
